package com.tudouji.project.bill.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import com.tudouji.project.product.domain.Salesspecification;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 出库单明细对象 whoutformitem
 * 
 * @author wf
 * @date 2021-01-12
 */
@Data
public class Whoutformitem
{
    private static final long serialVersionUID = 1L;

    //关联业务子表id
    private String scrapitemid;
    /** guid */
    private String guid;

    /** 出库单id */
    @Excel(name = "出库单id")
    private String whoutid;

    /** 库房id */
    @Excel(name = "库房id")
    private String srguid;

    /** 库间id */
    @Excel(name = "库间id")
    private String shrguid;

    /** 产品id */
    @Excel(name = "产品id")
    private String productguid;

    /** 规格id */
    @Excel(name = "规格id")
    private String spguid;
    private String spename;
    private String product;
    private String house;
    private String room;
    /** 组织id */
    @Excel(name = "组织id")
    private String orgguid;

    /** 组织名称 */
    @Excel(name = "组织名称")
    private String orgname;

    /** 重量 */
    @Excel(name = "重量")
    private BigDecimal weight;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;
    /** 内部结算价 */
    @Excel(name = "内部结算价")
    private BigDecimal innerPrice;

    private BigDecimal stockUnitPrice;//库存单价
    //库存成本单价，20240109新增，物料出库后反馈给调用方（应用）
    private BigDecimal costPrice;

    /** 出库件数 */
    @Excel(name = "出库件数")
    private Integer loadcount;

    /** 计量单位id */
    @Excel(name = "计量单位id")
    private Long stockunitid;

    /** 销售明细中的规格 */
    @Excel(name = "销售明细中的规格")
    private String rawspguid;

    /** 赠送数量 */
    @Excel(name = "赠送数量")
    private BigDecimal handsel;

    /** 单位名字 */
    @Excel(name = "单位名字")
    private String stockunit;

    private BigDecimal handselweight;

    private String itemguid;

    private Integer handselcount;//赠送数量

    private String orderId;

    private String cospguid;//成本对象id

    private Salesspecification cosobj;//成本对象

    private Long sfunitid;//业务单据的单位id，前台传
    private BigDecimal busiunitTostockunitRate;//业务单位到库存单位的转换率，保存在业务单据中
    //20240117 业务单据的业务单位Id
    private Long businessUnitId;
    private String businessUnitName;

    private Integer packamount;//套装单品规定数量


    private Date createdate;
    private int outtype;

    private String[] orderguids;

    private String orderItemGuid;

    private String suitpackid ;//套装定义ID

    private String linkid;//关联表明细id

    private BigDecimal weightsum;

    private Date createTime;
    private Long createBy;

    /** 更新者 */
    private String updateBy;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
